from typing import *


class Solution:
    def possibleStringCount(self, word: str) -> int:
        ans = 0
        for i in range(1, len(word)):
            if word[i] == word[i - 1]:
                ans += 1
        return ans + 1


class Solution:
    def possibleStringCount(self, word: str) -> int:
        return sum(1 for i in range(1, len(word)) if word[i] == word[i - 1]) + 1
